<com:TPanel id="PortletEditMode" Style="border-bottom: 1px solid black; margin: 0px 0px 0px 0px; text-align: right;">
	<com:TImageButton OnClick="MoveButtonClicked" ImageURL="<%=$this->BaseUrl%>/images/edit/page_next.gif" Text="<%[Move to another area%>" />
	<com:TImageButton OnClick="UpButtonClicked" ImageURL="<%=$this->BaseUrl%>/images/edit/page_up.gif" Text="<%[Move portlet up]%>" />
	<com:TImageButton OnClick="DownButtonClicked" ImageURL="<%=$this->BaseUrl%>/images/edit/page_down.gif" Text="<%[Move portlet down%>" />
	<com:TImageButton OnClick="PropertyButtonClicked" ImageURL="<%=$this->BaseUrl%>/images/edit/application_form.png" Text="<%[Properties]%>" />
	<com:TImageButton OnClick="DeleteButtonClicked" ImageURL="<%=$this->BaseUrl%>/images/edit/application_delete.png" Text="<%[Remove portlet]%>" Attributes.onclick="if(!confirm('<%= Prado::localize('Are you sure?') %>')) return false;" />
</com:TPanel>
<com:TPanel GroupingText="<%[Slide show]%>">
<table>
	<tr>
		<td><com:TLabel Text="<%[Width]%>" /><td>
		<td><com:TTextBox Id="tbSlideShowWidth" MaxLength="4" Columns="5" /></td>
		<td><com:TLabel Text="<%[Height]%>" /><td>
		<td><com:TTextBox Id="tbSlideShowHeight" MaxLength="4" Columns="5" /></td>
		<td><com:TLabel Text="<%[Delay (seconds)]%>" /><td>
		<td><com:TTextBox Id="tbSlideShowDelay" MaxLength="4" Columns="5" /></td>
	</tr>
</table><br />

<com:TPanel id="grpSlideShowFiles" GroupingText="<%[Files in slide show]%>" Style="width: 100%;">
<com:TDataList
	ID="dtlistSlideShowFiles"
	DataKeyField="id"
	PageSize="10"
	AllowPaging="true"
	AllowCustomPaging="true"
	EnableViewState="true"
	OnDeleteCommand="deleteSlideShowFile"
	HeaderStyle.CssClass="grid-header"
	HeaderStyle.Width="100%"
	ItemStyle.CssClass="grid-row1"
	ItemStyle.Width="100%"
	AlternatingItemStyle.CssClass="grid-row2"
	EditItemStyle.CssClass="grid-row-edit"
	SelectedItemStyle.CssClass="grid-row-selected"
	OnSelectedIndexChanged="selectItemFile"
	onItemCommand="onItemCommand"
	style="width: 100%;">

<prop:HeaderTemplate>
<table border="0" width="100%">
<tr>
	<td width="45%"><%[Name]%></td>
	<td width="25%"><%[Image]%></td>
	<td width="10%"><%[Size]%></td>
	<td width="20%" style="text-align: right;"><%[Commands]%></td>
</tr>
</table>
</prop:HeaderTemplate>
<prop:ItemTemplate>
<table border="0" width="100%">
<tr>
	<td align="left" width="45%"><%# $this->DataItem->filename %></td>
	<td align="left" width="25%"><com:TImage  ImageUrl="<%#$this->TemplateControl->getImageUrl($this->DataItem->filename)%>" Width="30px;" Height=30px;" /></td>

	<td align="left" width="10%"><%# sprintf("%d KB", ($this->DataItem->filesize /1024)) %></td>
	<td style="text-align: right;" width="20%">
	<com:TImageButton CommandName="MoveUp" CommandParameter=<%#$this->DataItem->id%>" ImageURL="<%=$this->TemplateControl->BaseUrl%>/images/edit/page_up.gif" Text="<%[Move up%>" />
	<com:TImageButton OnClick="MoveDown" ImageURL="<%=$this->TemplateControl->BaseUrl%>/images/edit/page_down.gif" Text="<%[Move down]%>" />
	<com:TImageButton ImageUrl="/themes/Admin/Default/images/application_delete.png" Text="<%[Delete]%>" CommandName="delete" Attributes.onclick="if(!confirm('<%= Prado::localize('Are you sure?')%>')) return false;" />
	</td>
</tr>
</table>
</prop:ItemTemplate>

</com:TDataList>

<com:TPager ID="DlFilesPager"
	ControlToPaginate="dtlistSlideShowFiles"
	FirstPageText="<<"
	LastPageText=">>"
	Mode="NextPrev"
	NextPageText=">"
	PrevPageText="<"
	OnPageIndexChanged="pageChangedDlFiles"
	/>
</com:TPanel>
<br>
<com:TPanel id="pnlNewSlideShowFile" DefaultButton="SaveSlideShowFile" GroupingText="Add file">
<table style="width: 100%;">
	<tr>
		<td><com:TValidationSummary Display="Dynamic" ValidationGroup="slideshowfile" /></td>
	</tr>
	<tr>
		<td><com:TLabel Text="<%[File, max file size,]%>" /> <com:TLiteral Id="ltFileSize" /></td>
	</tr>
	<tr>
		<td>
			<com:TFileUpload ID="FileUpload" OnFileUpload="OnFileUpload" /><com:TButton BackColor="silver" ID="SaveSlideShowFile" Text="Send" ValidationGroup="slideshowfile" />&nbsp;<com:TRequiredFieldValidator ValidationGroup="downloadfile" EnableClientScript="true" ControlToValidate="FileUpload" ErrorMessage="<%[Please enter your filename.]%>" ControlCssClass="required-field" />
		</td>
	</tr>
	<tr>
		<td colspan="2"><hr /></td>
	</tr>
	<tr>
		<td><com:TPortalLinkButton Id="SlideShowSaveContent" Text="<%[Save]%>" CssClass="link-button" OnClick="SaveContent" ValidationGroup="SlideShowSave" /></td>
		<td style="text-align: right;"><com:TLinkButton ID="CancelContent" Text="<%[Cancel]%>" CssClass="link-button" OnClick="CancelContent" /></td>
	</tr>
</table>
</com:TPanel>
</com:TPanel>